package com.example.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：songxusheng
 * @description：
 * @date ：Created in 2022/7/4 10:10
 * @version:
 */
@RestController
@RequestMapping("/test02")
public class TestController {
    @Value("${server.port}")
    private String applicationServerPort;
    @GetMapping("/test")
    public String Test(){
        return "请求test02，当前服务的端口号为" + applicationServerPort;
    }
}
